package com.ctsi.ssdc.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.ctsi.ssdc.annotation.AutoId;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.ZonedDateTime;

/**
 * @author ctsi-biyi-generator
*/
@ApiModel(description = "LitemallAftersale")
@TableName("litemall_aftersale")
public class LitemallAftersale extends Model<LitemallAftersale> implements Serializable {
    /**
     * @Fields id 
     */
    @ApiModelProperty("")
    @AutoId(primaryKey = "id")
    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(value="id")
    @TableField(value="id")
    private Integer id;

    /**
     * @Fields aftersaleSn 售后编号
     */
    @ApiModelProperty("aftersaleSn")
    @TableField(value="aftersale_sn")
    private String aftersaleSn;

    /**
     * @Fields orderId 订单ID
     */
    @ApiModelProperty("orderId")
    @TableField(value="order_id")
    private Integer orderId;

    /**
     * @Fields userId 用户ID
     */
    @ApiModelProperty("userId")
    @TableField(value="user_id")
    private Integer userId;

    /**
     * @Fields type 售后类型，0是未收货退款，1是已收货（无需退货）退款，2用户退货退款
     */
    @ApiModelProperty("type")
    @TableField(value="type")
    private Short type;

    /**
     * @Fields reason 退款原因
     */
    @ApiModelProperty("reason")
    @TableField(value="reason")
    private String reason;

    /**
     * @Fields amount 退款金额
     */
    @ApiModelProperty("amount")
    @TableField(value="amount")
    private BigDecimal amount;

    /**
     * @Fields pictures 退款凭证图片链接数组
     */
    @ApiModelProperty("pictures")
    @TableField(value="pictures")
    private String pictures;

    /**
     * @Fields comment 退款说明
     */
    @ApiModelProperty("comment")
    @TableField(value="comment")
    private String comment;

    /**
     * @Fields status 售后状态，0是可申请，1是用户已申请，2是管理员审核通过，3是管理员退款成功，4是管理员审核拒绝，5是用户已取消
     */
    @ApiModelProperty("status")
    @TableField(value="status")
    private Short status;

    /**
     * @Fields handleTime 管理员操作时间
     */
    @ApiModelProperty("handleTime")
    @TableField(value="handle_time")
    private ZonedDateTime handleTime;

    /**
     * @Fields addTime 添加时间
     */
    @ApiModelProperty("addTime")
    @TableField(value="add_time")
    private ZonedDateTime addTime;

    /**
     * @Fields updateTime 更新时间
     */
    @ApiModelProperty("updateTime")
    @TableField(value="update_time")
    private ZonedDateTime updateTime;

    /**
     * @Fields deleted 逻辑删除
     */
    @ApiModelProperty("deleted")
    @TableField(value="deleted")
    private Boolean deleted;

    private static final long serialVersionUID = 1L;

    /** 
     * @return id 
     */
    public Integer getId() {
        return id;
    }

    /**
     * @param id 
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /** 
     * @return aftersale_sn 售后编号
     */
    public String getAftersaleSn() {
        return aftersaleSn;
    }

    /**
     * @param aftersaleSn 售后编号
     */
    public void setAftersaleSn(String aftersaleSn) {
        this.aftersaleSn = aftersaleSn == null ? null : aftersaleSn.trim();
    }

    /** 
     * @return order_id 订单ID
     */
    public Integer getOrderId() {
        return orderId;
    }

    /**
     * @param orderId 订单ID
     */
    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    /** 
     * @return user_id 用户ID
     */
    public Integer getUserId() {
        return userId;
    }

    /**
     * @param userId 用户ID
     */
    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    /** 
     * @return type 售后类型，0是未收货退款，1是已收货（无需退货）退款，2用户退货退款
     */
    public Short getType() {
        return type;
    }

    /**
     * @param type 售后类型，0是未收货退款，1是已收货（无需退货）退款，2用户退货退款
     */
    public void setType(Short type) {
        this.type = type;
    }

    /** 
     * @return reason 退款原因
     */
    public String getReason() {
        return reason;
    }

    /**
     * @param reason 退款原因
     */
    public void setReason(String reason) {
        this.reason = reason == null ? null : reason.trim();
    }

    /** 
     * @return amount 退款金额
     */
    public BigDecimal getAmount() {
        return amount;
    }

    /**
     * @param amount 退款金额
     */
    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    /** 
     * @return pictures 退款凭证图片链接数组
     */
    public String getPictures() {
        return pictures;
    }

    /**
     * @param pictures 退款凭证图片链接数组
     */
    public void setPictures(String pictures) {
        this.pictures = pictures == null ? null : pictures.trim();
    }

    /** 
     * @return comment 退款说明
     */
    public String getComment() {
        return comment;
    }

    /**
     * @param comment 退款说明
     */
    public void setComment(String comment) {
        this.comment = comment == null ? null : comment.trim();
    }

    /** 
     * @return status 售后状态，0是可申请，1是用户已申请，2是管理员审核通过，3是管理员退款成功，4是管理员审核拒绝，5是用户已取消
     */
    public Short getStatus() {
        return status;
    }

    /**
     * @param status 售后状态，0是可申请，1是用户已申请，2是管理员审核通过，3是管理员退款成功，4是管理员审核拒绝，5是用户已取消
     */
    public void setStatus(Short status) {
        this.status = status;
    }

    /** 
     * @return handle_time 管理员操作时间
     */
    public ZonedDateTime getHandleTime() {
        return handleTime;
    }

    /**
     * @param handleTime 管理员操作时间
     */
    public void setHandleTime(ZonedDateTime handleTime) {
        this.handleTime = handleTime;
    }

    /** 
     * @return add_time 添加时间
     */
    public ZonedDateTime getAddTime() {
        return addTime;
    }

    /**
     * @param addTime 添加时间
     */
    public void setAddTime(ZonedDateTime addTime) {
        this.addTime = addTime;
    }

    /** 
     * @return update_time 更新时间
     */
    public ZonedDateTime getUpdateTime() {
        return updateTime;
    }

    /**
     * @param updateTime 更新时间
     */
    public void setUpdateTime(ZonedDateTime updateTime) {
        this.updateTime = updateTime;
    }

    /** 
     * @return deleted 逻辑删除
     */
    public Boolean getDeleted() {
        return deleted;
    }

    /**
     * @param deleted 逻辑删除
     */
    public void setDeleted(Boolean deleted) {
        this.deleted = deleted;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        LitemallAftersale other = (LitemallAftersale) that;
        return (this.getId() == null ? other.getId() == null :
				 this.getId().equals(other.getId()))
            && (this.getAftersaleSn() == null ? other.getAftersaleSn() == null :
				 this.getAftersaleSn().equals(other.getAftersaleSn()))
            && (this.getOrderId() == null ? other.getOrderId() == null :
				 this.getOrderId().equals(other.getOrderId()))
            && (this.getUserId() == null ? other.getUserId() == null :
				 this.getUserId().equals(other.getUserId()))
            && (this.getType() == null ? other.getType() == null :
				 this.getType().equals(other.getType()))
            && (this.getReason() == null ? other.getReason() == null :
				 this.getReason().equals(other.getReason()))
            && (this.getAmount() == null ? other.getAmount() == null :
				 this.getAmount().equals(other.getAmount()))
            && (this.getPictures() == null ? other.getPictures() == null :
				 this.getPictures().equals(other.getPictures()))
            && (this.getComment() == null ? other.getComment() == null :
				 this.getComment().equals(other.getComment()))
            && (this.getStatus() == null ? other.getStatus() == null :
				 this.getStatus().equals(other.getStatus()))
            && (this.getHandleTime() == null ? other.getHandleTime() == null :
				 this.getHandleTime().equals(other.getHandleTime()))
            && (this.getAddTime() == null ? other.getAddTime() == null :
				 this.getAddTime().equals(other.getAddTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null :
				 this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getDeleted() == null ? other.getDeleted() == null :
				 this.getDeleted().equals(other.getDeleted()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getAftersaleSn() == null) ? 0 : getAftersaleSn().hashCode());
        result = prime * result + ((getOrderId() == null) ? 0 : getOrderId().hashCode());
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
        result = prime * result + ((getReason() == null) ? 0 : getReason().hashCode());
        result = prime * result + ((getAmount() == null) ? 0 : getAmount().hashCode());
        result = prime * result + ((getPictures() == null) ? 0 : getPictures().hashCode());
        result = prime * result + ((getComment() == null) ? 0 : getComment().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getHandleTime() == null) ? 0 : getHandleTime().hashCode());
        result = prime * result + ((getAddTime() == null) ? 0 : getAddTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getDeleted() == null) ? 0 : getDeleted().hashCode());
        return result;
    }
}